package file;

import java.io.File;
import java.io.IOException;

public class Demo2 {

	public static void main(String[] args) {
		/*File f=new File("g:\\movie");
		boolean b=f.mkdirs();
		if(b)
			System.out.println("创建成功");
		else
			System.out.println("创建失败");*/
		File f=new File("e:\\aa.txt");
		try{
		boolean b=f.createNewFile();
		if(b)
			System.out.println("创建成功");
		else
			System.out.println("创建失败");
		}catch(IOException e){
			e.printStackTrace();
			
		}
		

	}

}
